package com.lzwork.gpt.db.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import com.lzwork.gpt.db.entity.ApiEntity;
import com.lzwork.gpt.db.entity.ApiLogEntity;
import com.lzwork.gpt.db.entity.AppEntity;
import com.lzwork.gpt.db.entity.ModelEntity;

/**
 * @author LiZheng
 * @date 2023年11月30日 下午4:47:25
 */

@Component
@Mapper
public interface ModelDbMapperLite
{
	// Insert and return rowId
	public Integer createModelL(ModelEntity model);

	public Integer createApiL(ApiEntity api);

	public Integer createAppL(AppEntity api);

	// Reset auto Id
	public void setModelIdL(int id);

	public void setApiIdL(int id);

	public void setAppIdL(int id);

	public void resetId(String table);

	public Integer addLogL(ApiLogEntity log);

	public void setLogIdL(int id);
}
